package com.heima.admin.controller;


import com.heima.admin.service.AdUserService;
import com.heima.model.admin.dtos.AdUserDTO;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "登陆api",tags = "登陆api")
@RestController
public class LoginController {

    @Autowired
    private AdUserService adUserService;

    @ApiOperation("运营端登录")
    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody AdUserDTO dto){

        return adUserService.login(dto);

    }


}
